#include "Peripherals.h"
#include "RGBControl.h""

void testRGB() {
	int p = 0;
    initColor();
	uint32_t c = YELLOW;
	while(1)
	{
		p++;
		if (p > 1000)
		{
			c = PURPLE;
		}
		else
		{
			c = YELLOW;
		}
			
		
    	updateColor();
        InterpolateColor();
        if(checkDone()){
			if (c == YELLOW)
			{
				c = PURPLE;
			}
			else
			{
				c = YELLOW;
	        }
			setFutureColor(c);
		}
        _delay_ms(100);
	}
	
}
